export default {
    methods: {
        /**
         * 获取表格样式配置
         * @param typeNum 位置类型
         * row-行样式
         * cell-单元格样式
         * headerRow-表头行样式
         * headerCell-表头单元格样式
         */
        getStyle: function (typeNum) {
            switch (typeNum) {
                case "row":
                    return {
                        height: ".5vh",
                        padding: "0px !important",
                        "background-color": "rgba(19, 63, 88)",
                        color: "#ffffff",
                    };
                case "cell":
                    return {
                        height: ".5vh",
                        padding: "0px !important",
                    };
                case "headerRow":
                    return {
                        height: "1vh",
                        padding: "0px !important",
                        "background-color": "rgba(19, 63, 88)",
                        // "border-top-left-radius": "25px",
                        // "border-top-right-radius": "25px"
                    };
                case "headerCell":
                    return {
                        height: "1vh",
                        padding: "0px !important",
                        "background-color": "rgba(19, 63, 88)",
                        color: "#ffffff",
                        // "border-top-left-radius": "25px",
                        // "border-top-right-radius": "25px"
                    };
                default:
                    return {};
            }
        }
    }
};